// @ts-ignore
/* eslint-disable */
import { request } from 'umi';

/** 新增系统参数 POST /param/add */
export async function insertParamUsingPost(body: API.ParamVO, options?: { [key: string]: any }) {
  return request<API.TradeResult>('/param/add', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 删除系统参数 POST /param/delete */
export async function deleteRoleUsingPost(body: string[], options?: { [key: string]: any }) {
  return request<API.TradeResult>('/param/delete', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 查询系统参数列表 POST /param/list */
export async function fetchParamListUsingPost(
  body: API.PageBeanParamListQuery_,
  options?: { [key: string]: any },
) {
  return request<API.TradeResult>('/param/list', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 修改系统参数 POST /param/update */
export async function updateRoleUsingPost(body: API.ParamVO, options?: { [key: string]: any }) {
  return request<API.TradeResult>('/param/update', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
